package com.ruoyi.logistic.controller;

import java.util.List;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.logistic.domain.NetworkSalesmanTransferMoney;
import com.ruoyi.logistic.domain.PageDate;
import com.ruoyi.logistic.domain.PageInfo;
import com.ruoyi.logistic.domain.vo.NetworkSalesmanTransferMoneyVo;
import com.ruoyi.logistic.service.INetworkSalesmanTransferMoneyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.enums.BusinessType;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;

/**
 * 【请填写功能名称】Controller
 * 
 * @author ruoyi
 * @date 2023-11-14
 */
@RestController
@RequestMapping("/network/salesmanTransfer")
@Api(tags = "网点财务_出港发件费结算_业务员中转费汇总")
public class NetworkSalesmanTransferMoneyController extends BaseController {
    @Autowired
    private INetworkSalesmanTransferMoneyService networkSalesmanTransferMoneyService;

    /**
     * 查询
     */
    @ApiOperation("查询业务员中转费汇总")
    @PostMapping("/search")
    public R list(@RequestBody @Param("networkSalesmanTransferMoneyVo") NetworkSalesmanTransferMoneyVo networkSalesmanTransferMoneyVo) {
        List<NetworkSalesmanTransferMoney> list = networkSalesmanTransferMoneyService.search(networkSalesmanTransferMoneyVo);
        if (list == null || list.size() == 0){
            return R.fail("暂无数据");
        }else {
            return R.ok(PageInfo.info(list));
        }
    }


}